
/*兼容ie8开始*/
require('es5-shim');
require('es5-shim/es5-sham');
require('console-polyfill');
/*兼容ie8结束*/
var React=require('react');
var ReactDom=require('react-dom');
var Redux=require('redux');
var reactRedux=require('react-redux');
var thunk=require('redux-thunk');
var createStore=Redux.createStore;
var applyMiddleware=Redux.applyMiddleware;
var reducers=require('./reducers')
var NewsViewer=require( './containers/NewsViewer.jsx');

/*var a=require('javascripte/test2.js');*/
require('stylesheets/test.less');
var initialState = window.__INITIAL_STATE__;
var createStoreWithMiddleware = applyMiddleware(thunk.default)(createStore);
var store = createStoreWithMiddleware(reducers, initialState);
var Provider=reactRedux.Provider;

ReactDom.render(
    <Provider store={store}>
        <NewsViewer/>
    </Provider>,document.getElementById('root'));